package cn.topcodes.tcsf.wechat.service;

import cn.topcodes.tcsf.admin.commons.generic.IGenericService;
import cn.topcodes.tcsf.wechat.domain.entity.WechatKfAccount;
import org.springframework.transaction.annotation.Transactional;

/**
 * 微信公众号客服服务接口
 * @author Unicorn
 * Created by Unicorn on 2017/10/2.
 */
public interface WechatKfAccountService extends IGenericService<WechatKfAccount> {

    /**
     * 查找客服账号
     * @param account
     * @return
     */
    WechatKfAccount findByAccount(String account);

    /**
     * 同步所有客服工号
     */
    @Transactional(readOnly = false, rollbackFor = Exception.class)
    void syncAllKfAccount(String mpId);

    void syncAllKfAccount();
}
